<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>佛经管理后台</title>

    <!-- Bootstrap -->
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- Datatables -->
    <link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../build/css/custom.min.css" rel="stylesheet">
    <link href="/static/css/main.css" rel="stylesheet">
    <link href="../vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
    <!-- bootstrap-datetimepicker -->
    <link href="../vendors/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css" rel="stylesheet">
    <!-- Ion.RangeSlider -->
    <link href="../vendors/normalize-css/normalize.css" rel="stylesheet">
    <link href="../vendors/ion.rangeSlider/css/ion.rangeSlider.css" rel="stylesheet">
    <link href="../vendors/ion.rangeSlider/css/ion.rangeSlider.skinFlat.css" rel="stylesheet">
    <!-- Bootstrap Colorpicker -->
    <link href="../vendors/mjolnic-bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css" rel="stylesheet">

    <link href="../vendors/cropper/dist/cropper.min.css" rel="stylesheet">

    <!-- Custom Theme Style -->

  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="profile clearfix text-center">
              <div class="profile_info">
                <div class="welcome">Welcome</div>
              </div>

            </div>
            <!-- /menu profile quick info -->

            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            </div>
            <div class="sidebar-footer hidden-small">
              <a data-toggle="tooltip" data-placement="top" title="Settings">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Lock">
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Logout" href="login.html">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
              </a>
            </div>
            <!-- /menu footer buttons -->
          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <li><a href="login.html">Log Out</a></li>
                  </a>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        

        <div class="right_col" role="main">
         
          <div id="main">
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>文字识别</h2> 
                    <div class="clearfix"></div>
                  </div>
                  <br>
                  <form class="form-horizontal form-label-left" onsubmit="return false" id="recog" enctype="multipart/form-data">
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">经书名称</label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input disabled="disabled" type="text" id="edition_name" class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">页面页码</label>
                      <div class="col-md-6 col-sm-6 col-xs-12">
                        <input disabled="disabled" type="text" id="page_num" class="form-control col-md-7 col-xs-12">
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"></label>
                      <div class="col-md-2 col-sm-6 col-xs-12">
                        <input type="button" id="screenshot_upload" class="btn btn-success" value="提交截图" style="display: none;" onclick="wordImgUpload()">
                        <!-- <input type="button" id="screenshot_upload" class="btn btn-success" value="提交截图" style="display: none;"> -->
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">页面图片
                      </label>
                      <div class="col-md-2 col-sm-6 col-xs-12" style="height: 300px">
                        <img id='page_img' src="" style="max-height: 300px">
                      </div>
                      <label class="control-label col-md-1 col-sm-3 col-xs-12" for="first-name">定位结果</label>
                      <div class="col-md-3 col-sm-6 col-xs-12" id='locate_res'>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"></label>
                      <div class="col-md-2 col-sm-6 col-xs-12">
                        <input type="button" class="btn btn-success" value="确定定位" onclick="pageWordLocateCommit()" id='locate_commit' style="display: none">
                      </div>
                    </div>
                    <div class="ln_solid"></div>
                  </form>


                  <form class="form-horizontal form-label-left" id="recog_res" style="display: none">

                  </form>

                </div>
              </div>
            </div>
          </div>
        </div>


        <footer>
          <div class="pull-right">
            by py69
          </div>
          <div class="clearfix"></div>
        </footer>
      </div>
    </div>

    <script id="dotlist" type="text/template">
      <table class="table table-hover">
      <tbody>
      {{ for (var i = 0, l = it.word_imgurl.length; i < l; i++) { }}
          <tr>
            <td><img src="{{=it.word_imgurl[i]}}" style="max-width: 20px; max-height: 20px"></td>
            {{ if(it.words[i]){ }}
              <td><label>{{=it.words[i]}}</label></td>
            {{ }else{ }}
              <td><label>文字缺失</label></td>
            {{ } }}
            {{ if(it.status == 0 && it.words[i]){ }}
              <td>
                <i class="glyphicon glyphicon-plus" style="cursor:pointer;" onclick="screenshot({{=i}}, 'create')" title="插入图片"></i>&nbsp
                <i class="fa fa-pencil-square" style="cursor:pointer;" title="修改图片" onclick="screenshot({{=i}}, 'update')"></i>&nbsp
                <i class="fa fa-trash" style="cursor:pointer;" title="删除图片" onclick="wordsDelete({{=i}})"></i>
              </td>
            {{ } }}
          </tr>
      {{ } }}
      </tbody>
      </table>
    </script>


    <script id="dotlist2" type="text/template">
      {{ for (var i = 0, l = it.data.length; i < l; i++) { }}
        <tr>
        <td>{{=it.data[i].index}}</td>
        <td>{{=it.data[i].name}}</td>
        <img src="{{=it.data[i].word_url}}" style="max-width: 20px; max-height: 20px">
        </td>
        </tr>
      {{ } }}
    </script>


    <!-- jQuery -->
    <script src="/static/js/element.js"></script>
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    <script src="/static/js/dot.min.js"></script>
    <script src="/static/js/common.js"></script>
    <script src="/static/js/page.js"></script>
    <!-- Bootstrap -->
    <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="../vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="../vendors/nprogress/nprogress.js"></script>
    <!-- iCheck -->
    <script src="../vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script id='hahah' src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="../vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="../vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="../vendors/jszip/dist/jszip.min.js"></script>
    <script src="../vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="../vendors/pdfmake/build/vfs_fonts.js"></script>
    <script src="../vendors/cropper/dist/cropper.min.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>
    <script>
      $("#sidebar-menu").load("sidebar.html", null, init_sidebar);
    </script>

  </body>
</html>